<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>美策平台</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <link rel="stylesheet" type="text/css" href="../datepicker/jquery-ui.min.css">
    <link type="text/css" rel="stylesheet" href="../css/app.css"/>
    <link type="text/css" rel="stylesheet" href="../css/loginMobile.css"/>
    <link type="text/css" rel="stylesheet" href="../css/all.css"/>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script src="../datepicker/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/h5/js/all.js"></script>
</head>
<body id="Ibody">
<!--
	制作：陈道祥
	页面：工厂环境
	更新：九哥
-->





<!-----------工厂环境页面---------->
<div class="stepTwo" id="IstepNineFactoryEnvirenment">
    <div class="companyHeadPanel">
        <div class="companyHeadOne">您公司的环境</div>
    </div>
    <div class="companyInfoSpace"></div>
    <div class="modelPanel"></div>

    <div class="bFileDiv" id="managerShow" postsave="envs" title="请上传总经理照片" bixu="false"></div>
    <div class="bFileDiv" id="facManagerShow" postsave="envs" title="请上传办公室照片" bixu="false"></div>
    <div class="bFileDiv" id="financeShow" postsave="envs" title="请上传财务室照片" bixu="false"></div>

    <div class="bFileDiv" id="guardShow" postsave="envs" title="请上传门卫照片" bixu="false"></div>
    <div class="bFileDiv" id="shapes" postsave="envs" title="请上传厂房外形图" bixu="false"></div>
    <div class="bFileDiv" id="rawShow" postsave="envs" title="请上传充绒房照片" bixu="false"></div>

    <div class="bFileDiv" id="techShow" postsave="envs" title="请上传技术部照片" bixu="false"></div>
    <div class="bFileDiv" id="workShow" postsave="envs" title="请上传缝制车间照片" bixu="false"></div>
    <div class="bFileDiv" id="backShow" postsave="envs" title="请上传后道车间照片" bixu="false"></div>


    <div class="bFileDiv" id="cuts" postsave="envs" title="请上传裁剪车间照片" bixu="false"></div>
    <div class="bFileDiv" id="samples" postsave="envs" title="请上传样衣间照片" bixu="false"></div>

    <div class="companyInfoSpace"></div>
    <div class="companyRemark">备注：方便你的客户找到你、招聘的员工找到你、了解你、信任你，图片尽量上传完善。让客户多了解自己，容易接单成功。细节决定成败，图片清晰。</div>
    <div class="nextStepDiv">
        <!--<span class="prevStep" id="facEnvPre">上一步</span>-->
        <!--<span class="nextStep" id="facEnvNext">提交</span>-->
        <span class="prevStep" onclick="history.go(-1)">返回</span>
        <span class="nextStep" onclick="setSave()">保存</span>
    </div>
</div>
<span id="count"></span>
<!-----------工厂环境页面---------->





<!-----------提示信息---------->
<div id="errMsg"></div>
<!-----------提示信息---------->
</body>
<script type="text/javascript" src="../js/loginFac.js"></script>
<script>
    MC.View.pic.load();
    H5.TitleBar.create("公司环境");
    ///api/member/factory/fac-env-upload
    function setSave(){
        var envs=[];
        var list=[];
        list['envs']={};
        var postsavelist=$('[postsave=envs]');
        for(var i=0;i<postsavelist.length;i++){
            var obj={};
            var one=$(postsavelist[i]);
            list['envs'][one.attr('id')]=(one.val());
        }
        MC.apiD('/api/member/factory/fac-env-upload',{
            envs:JSON.stringify(list['envs']),
            type:'gs'
        },function(){
            MC.msg.show('保存成功');
        });
    }

    MC.api("/api/member/factory/fac-env-file",{type:'gs'},function(data){
        for(var key in data){
            var val=data[key];
            $('#'+key).val(val);
        }
        MC.View.pic.loadData();
        console.log(data);
    });



</script>
</html>